package com.xh.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 目录对象 d_content
 *
 * @author dongxuefei
 * @date 2020-09-16
 */
public class DContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 项目ID */
    private String projectId;

    /** 目录名 */
    private String contentName;

    /** 排序 */
    private Long dSort;

    /** 上级目录ID */
    private String parentId;

    /** 上级目录名字 */
    private String parentName;



    /** 创建人姓名 */
    private String createName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记 */
    private String delFlag;

    private List<DContent> treeList =new ArrayList<>();

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<DContent> getTreeList() {
        return treeList;
    }

    public void setTreeList(List<DContent> treeList) {
        this.treeList = treeList;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setProjectId(String projectId)
    {
        this.projectId = projectId;
    }

    public String getProjectId()
    {
        return projectId;
    }
    public void setContentName(String contentName)
    {
        this.contentName = contentName;
    }

    public String getContentName()
    {
        return contentName;
    }
    public void setdSort(Long dSort)
    {
        this.dSort = dSort;
    }

    public Long getdSort()
    {
        return dSort;
    }
    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        return "DContent{" +
                "id='" + id + '\'' +
                ", projectId='" + projectId + '\'' +
                ", contentName='" + contentName + '\'' +
                ", dSort=" + dSort +
                ", parentId='" + parentId + '\'' +
                ", parentName='" + parentName + '\'' +
                ", createName='" + createName + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
